home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / LDB171.ARJ / EXAMP701.CPP < prev    next >
C/C++ Source or Header  |  1992-05-12  |  368b  |  26 lines

  1. // examp701.cpp - link with binder.obj
  2.  
  3. #include "binder.hpp"
  4.  
  5. Binder& clear(Binder& b)
  6. {
  7.     if (b.Flags(BDR_DDELETE))
  8.         b.allDel();
  9.     else
  10.         b.allRmv();
  11.     return b;
  12. }
  13.  
  14. char *v[] = {"line one ", "line two ", 0 };
  15.  
  16.  
  17. main()
  18. {
  19.     Binder b ((voiDV) v);
  20.     b << clear;
  21.     b.atIns(0,"only line");
  22.     while (++b)
  23.         cout << (char *) b.get() << "\n";
  24.     return 0;
  25. }
  26.